<article id="newPost" class="wrapper">
	<?php if($isView=="featured") : ?>
	<h3 class="heading"># bài viết nổi bật</h3>
	<ul class="label">
		<li class="blue"><a href="https://www.izwebz.com/category/video-tutorials/">Video tutorial</a></li>
		<li class="red"><a href="https://www.izwebz.com/category/newbie/chien-luoc-phat-trien/">Phát triển web</a></li>
		<li class="gray"><a href="http://store.izwebz.com">Izwebz Store</a></li>
		<li class="dblue"><a href="https://www.izwebz.com/category/hosting-domain/">Hosting & domain</a></li>
		<li class="brown"><a href="https://www.izwebz.com/category/jobs-exp/">Jobs Exp</a></li>
	</ul>
	<?php elseif($isView=="featuredHosting") : ?>
	<h3 class="heading"># top nhà cung cấp</h3>
	<ul class="label">
		<li class="blue"><a href="#trongnuoc">Trong nước</a></li>
		<li class="red"><a href="#nuocngoai">Nước ngoài</a></li>
		<li class="gray"><a href="#sharehosting">Share hosting</a></li>
		<li class="dblue"><a href="#domainregistar">Domain Registar</a></li>
		<li class="brown"><a href="#cloudvps">Cloud VPS</a></li>
	</ul>
	<?php endif; ?>
	<div class="postArticle">
		<?php foreach($posts as $post) : ?>
		<div id="postItem-<?php echo $post['id']; ?>" class="postItem floatLeft">
			<div class="postImage floatLeft">
				<a href="<?php echo $post['permalink']; ?>">
					<?php if(has_post_thumbnail($post['id'])) : ?>
							<?php $thumb = wp_get_attachment_image_src(get_post_thumbnail_id($post['id']),'full'); ?>
							<img src="<?php echo CORE_TIMTHUMB_URL.$thumb."&w=70&h=70";?>" alt="<?php echo $post['title']; ?>">
					<?php else : ?>
						<?php $thumbMeta = get_post_meta($post['id'], 'thumbnail', true); ?>
						<?php if(!empty($thumbMeta)) : ?>
							<img src="<?php echo CORE_TIMTHUMB_URL.get_post_meta($post['id'], 'thumbnail', true)."&w=70&h=70";?>" alt="<?php echo $post['title']; ?>">
						<?php else : ?>
						<img src="<?php echo CORE_TIMTHUMB_URL.CORE_THEME_IMAGE."no-image.jpg&w=70&h=70";?>" alt="<?php echo $post['title']; ?>">
						<?php endif; ?>
					<?php endif; ?>

				</a>
			</div>
			<!-- /.postImage -->
			<div class="postDetail floatRight">
				<h5><a href="<?php echo $post['permalink']; ?>"><?php echo $post['title']; ?></a></h5>
				<h6>#<?php echo $post['author']['name']; ?></h6>
				<p><?php echo limitWord($post['excerpt'],200); ?></p>
			</div>
			<!-- /.postDetail -->
			<div class="clearfix"></div>
		</div>
		<?php endforeach; ?>
		<div class="clearfix"></div>
	</div>
	<!-- /.postArticle -->
</article>
<!-- newPost -->